import Home from '../pages/Home';
import Uc from '../pages/Uc';
import List from '../pages/List';
import { createHashRouter,createBrowserRouter } from 'react-router-dom'

// hash路由   history路由
//  create 创建 Hash 哈希 Router 路由 => createHashRouter

// 通过 createHashRouter我们就可以创建一个路由对象
const router = createBrowserRouter([
    {
      path: "/",
      element: <Home />,
    },
    {
      path: "/list",
      element: <List />,
    },
    {
      path:'/uc',
      element: <Uc /> 
    }
  ]);
  
export default  router